060 assigning authorization on control
在本视频中,我们将了解西门子 HMI 中的用户授权 有时,您会注意到,当您登录到 HMI 屏幕时,您有不同的用户。
In this video we will learn about user authorization in Siemens HMI Sometime you will notice when you log on to your HMI screen you have different users.
一种用于管理员,一种用于操作员,一种用于查看者。
One is for the Admin, one is for the operator and one is for the viewer.
好吧?
Alright?
因此,我们可以为这些用户分配不同的功能,所以让我们看一个当前我没有登录他们的任何帐户的示例......
So we can assign different functions to these users so let's see an example currently I'm not logged on in any of their accounts...
所以如果你看到这个用户密码表,这是空的,好吧,所以如果我只是进入我的银行屏幕,如果我想访问按钮和气动字段,我不能这样做,因为这是受保护的字段,这些字段已分配给一些特定的用户。
so if you see this user password table this is empty alright so if I just go to my bank screen and if I if I would like to access the buttons and the pneumatic fields I can't do that because this is protected field these are assigned to some specific users.
因此,如果我单击关闭按钮,我无法执行此操作,它会要求我登录吗?
So if I click on the off button I cannot do that it will ask me to log on?
那么目前您是否看到我的作用只是监控参数并记下来?
So currently if you see my role is just to monitor the parameters and note it down?
好的..
All right..
如果我想要访问这些功能访问这些按钮和气动输入我必须登录吗?
if I want if I want to access these functions access these buttons and pneumatic inputs I have to login?
因此,让我们首先以“管理员”身份登录,这样我就可以登录,我作为管理员的用户名是“Rajvir”,这是我在后端创建的,稍后我将向您展示这一点,我将输入我的用户名。密码。
So let's log in as an 'Admin' first so I'll go to log on and my username as an administration is 'Rajvir' which I have created in the back end I'm going to show you that later and I will enter my password.
您可以使用屏幕键盘输入密码我正在使用计算机键盘,因为可以使用模拟来输入密码,因此一旦我以“管理员”身份输入,您会注意到所有用户的表格,因此我们有用户 Rajvir,它是管理员我们有用户 John,它只是一个用户。
You can enter the password using on-screen keyboard I'm using my computer keyboard because that is possible using simulation so once I enter as an 'Admin' you will notice the table for all the users so we have user Rajvir which is an Admin we have user John which is just a user.
好吧,现在如果我现在去我的水箱,我以 Rajvir(管理员)身份登录,我可以更改这些值,我可以更改填充阀的开度,我也可以将其关闭 - 我的排水阀和填充阀因此,作为管理员,我拥有完全授权的权限来更改屏幕上的任何内容,即使我回家我也可以更改用户的名称。
Alright, now if I go to my tank now I'm logged in as Rajvir (Admin) I can change these values and I can change the opening of my filling valve and I can also turn it off - my draining valve and my filling valve so as an admin I have full authorized rights to change anything in my screen even if I go to home I can change the name for my users.
我可以更改这个,我可以更改其密码,我可以重置密码......
This I can change I can change its password, I can reset the password...
这些是一些管理权限。
these are some administrative privileges.
现在我们有一些时间日志,该用户将在 1 分钟后自动注销。
Now we have some log of time that this user will be automatically logged off after 1 minute.
其余的你也可以改变。
Rest of this you can also change.
现在也可以手动注销。
Now can also do the manually log off.
所以如果我现在注销。
So if I log off now.
现在让我们以基本用户身份登录 - John I 将输入其 ID 和密码。
Now let's log on as the basic user as- John I will enter its ID and the password.
单击“确定”,现在 John 已登录,您只能看到 John 输入的信息以及 John 的身份。
Click OK now John is logged in and you can only see the information which John entered and as a John.
John 也可以更新他的密码。
John can also update his password ok.
但 John 无法更新其用户名,因为这是由管理员创建的。
But John cannot update its username because this was created by the Admin.
现在,如果您转到这里的水箱,您会注意到约翰没有更改阀门开度的权限,这是在设计屏幕时分配的。
Now if you go to the tank here you will notice John does not have privileges to change the opening of the valve, this has been assigned while designing the screen.
约翰只有关闭阀门的特权。
John only has privilege to turn off the valves.
在我们的例子中,阀门已经关闭,但您可以看到按钮被按下。
In our case the valve is already off but you can see the button is being pressed.
因此,约翰有权关闭阀门,但他无权打开管理员已有的阀门。
So John has the privilege to turn off the valve but the he does not have the privilege to turn on the valve which the admin already has.
好吧,让我们回到家,一分钟后您会注意到 John 将被注销。
Alright so let's go back to home and after exactly one minute you will notice that the John will be logged off.
因此,让我们等一分钟,我们将看到约翰将被注销,我将转发此视频只是为了消磨一分钟。
So let's wait for a minute and we will see the John will be logged off and I'm going to forward this video just to kill one minute.
好吧,您可以看到 John 已注销,因为注销时间为 1 分钟,现在让我们看看如何创建此用户授权 ID 和密码设置。
Alright you can see that the John is logged off because log off time was 1 minute now let's see how to create this user authorization ID and password settings.
我将在您的 HMI 程序中关闭此帐户,您必须导航到您的用户管理,您会注意到我创建了两个帐户,一个为 Rajvir,一个为 John。
I'm going to close this one in your HMI program you have to navigate to your user administration here you will notice I have created two accounts one for Rajvir and one for John.
因此,让我将其删除,以便我可以向您展示如何从头开始执行此操作。
So let me remove it so that I can show you how to do it from scratch.
所以......这里我们还有一些用户组......
So to ...here we also have some user groups...
因此我们可能必须删除它,以便您会在此处找到默认管理员,并且您可以更改管理员的名称。
so we might have to delete it so you'll find the default admin already here and you can change the name of the admin.
你可以更改密码,所以让我们将 admin 的名称更改为 ABC,我将把密码设置为 12345,好吧,这是我的一个用户 ABC -12345,如果你注意到这里的用户组,我们有管理员组管理员组中的用户组我选中了三个选项用户管理、监视和操作,而用户组我只选中了监视和操作两个选项。
And you can change the password so let's change the name of admin to ABC and I'm going to put the password as 12345, all right so this is my one user ABC -12345 and if you notice the user groups here we have administrator group and user group in the administrator group I have checked three options user administration, monitor and operate and user group I have checked only two options monitor and operate.
同样,您可以再创建一个组,让它成为我仅在其中分配升级选项的默认组。
Similarly you can create one more group let it be the default group in which I only assign the upgrade option.
好吧?
Alright?
因此,当您返回到您的用户时,您可以将您的用户分配到哪个组,所以让我们将其命名为 ABC 用户 1 好吧,User1 是我的管理员组,我可以使用相同的密码创建 User2,这在我的用户中团体。
So when you go back to your users you can assign to which group you want to put your user so let's name it instead of ABC user one okay User1 is my administrator group and I can create User2 with the same password and this is in my user group.
现在该用户组只能进行监控和操作,不能进行用户管理,这意味着它不能更改其他用户的ID和密码,而只有User1可以这样做。
Now this user group can only do monitoring and operating it cannot do user administration which means it cannot change the ID and password for the others, which only User1 can do.
这就是为什么我将这个用户1命名为管理员,并将这个用户2命名为约翰,只是为了消除混乱,而管理员的密码是12345。
That's why I named this users1 an Admin all right and name this user2 as John just to remove the confusion and the password of admin is 12345.
约翰的密码我可以输入相同的 - 12345 好吗?
and the password for John I can put the same - 12345 okay?
现在我们有时间日志,如果您想要自动注销,您必须设置一个可以更改的注销时间,以分钟为单位。
Now we have log of time if you want automatic log off you have to put a log off time which you can vary and this is in minutes.
因此,让我们将时间限制为 1 分钟,现在我们有两个用户 admin(属于管理员组)和 John(属于用户组),现在我们将返回到我的 HMI 屏幕。
So let's make it to 1 minute so now we have two user admin and which is in the administrator group and John which is of the user group alright now we'll go back to my HMI screen.
在这里,我必须创建用于登录和注销的按钮,这非常简单,您只需从工具箱元素中获取按钮即可。
Here I have to create the buttons for log on and log off and this is very simple you just take the button from here from your toolbox element.
这是一个普通的按钮,我只需将其重命名即可登录,如果需要的话,可以将其设置为绿色,并且只需更改事件中的属性...
This is a normal button I took just rename that to log on and give it a green color if you want and you just have to change the properties in the events...
所以如果你去参加活动,你会发现这个登录按钮已经给出了 - “显示登录对话框”,如果我删除它,哎呀!?
so if you go to the events you will find this log on button has been given - 'Show login dialog' and how this comes if I delete it oops !?
您只需单击此处并转到用户管理,然后单击显示登录对话框,这样当您单击登录时,您将看到 ID 和密码屏幕,您可以在其中输入用户的 ID 和密码,类似地,我创建了另一个注销按钮,其中只给出了注销功能!?
you just click on here and go to user administration and click show logon dialog so when you click on log on you will get ID and password screen where you enter the ID and password of a user similarly I've created another button log off in which the function only log off is given!?
而且这也是在用户管理中给出的注销功能吗?
And this is also in user administration log off function is given?
好吧,您必须创建这两个按钮才能访问它。
Alright so these two buttons you have to create to access it.
现在,坦克按钮中有一件更有趣的事情,这是一个屏幕导航,如果我们转到坦克屏幕,我们已向管理员授予访问这两个按钮的额外授权,但用户只能访问关闭按钮,以及如何做到这一点,所以当您单击数字字段并转到其属性,您将在安全性中找到安全选项,授权已授予用户管理,好吧,这是组权利。
Now there is one more interesting thing in the tank buttons this is a screen navigation if we go to tank screen we have given extra authorization to admin to access these two but user can only access the off button all right and how to do that so when you click on your numeric field and go to its properties you will find security option in security the authorization is given to user administration okay this is the group right..
该字段还指定了用户管理组。
this field is also given user administration group.
好的,但是如果您看到该按钮已被赋予操作,并且该按钮已被赋予操作,因此如果您返回用户管理,请转到您的用户组,以便管理员组、用户组和默认组可以访问该操作,以便该操作可以由 admin 和 John 帐户访问,因为 admin 和 John 位于用户和管理员组中,并且该用户和管理员 - 两者都可以进行操作?
Alright but if you see the button this has been given operate and this is given to operate so if you go back to your user administration go to your user group so operate can be accessed by administrator group, user group and default group so the operate can be accessed by the account which is admin and John because admin and John are in the group of user and administrator and this user and administrator - both can do operate?
好吧,但是如果你检查一下用户管理员这个......
Alright but if you check the user administrator this one...
让我们回到这里,这个 I/O 字段具有用户管理功能。
let's go back here this I/O field has user administration.
好吧,现在这个权限只分配给管理员。
Alright now this authorization is only assign to administrator.
如果您转到用户组,您可以看到该用户管理。
If you go to user group you can see that user administration..
用户不能执行此操作,因为这是我们为 I/O 字段指定的标签,因此用户不能执行此操作,但如果您具有管理员权限,则可以访问用户管理此名称,您可以更改此名称,因为有时会创建如果我在这里谈论用户管理或用户在这里,那么您可以更改您可以使用的名称,这不是问题,所以我希望这是有道理的,在屏幕内的屏幕中您可以访问..you可以为特定用户提供访问权限吗?
the users cannot do that one because this is the this is the tag we have given to our I/O field so user cannot do that but if you have an administrator privileges you can access user administration this this name you can change because some time creates the confusion if I'm talking about user administration here or user is here so you can change the name you can play with the names that's not a problem so I hope this makes sense that within the screen inside the screen you can access ..you can provide access to specific users?
这就是分配帐户的好处。
That's the benefit of assigning the account.
好吧,如果你想练习测试,你可以下载屏幕,信息在讲座中给出,你可以将我在这里所做的事情以及你在这里试图实现的目标联系起来,所以如果我再回到我的模拟并返回主页,没有人登录,所以这意味着没有用户,所以没有人可以访问它。
Alright if you want to practice testing you can download the screen, the information is given in the lecture and you can just relate with what I have done here and what here you are trying to achieve all right so once again if I go back to my simulation and go back to home no one is logged in so it means there is no user so nobody can access that..
甚至不是管理员,甚至不是约翰,因为没有人是我的意思是用户当前用户不是管理员或不是约翰,所以他无法访问任何内容......
not even admin not even John because nobody is I mean the user current user is not admin or not John so he cannot access anything...
但是,当您开始以 John 身份登录时,密码为 12345,所以 John 已登录,现在 John 可以退出了。
but when once you start login as John the password was 12345 ok so John is logged in and now John can press off.
好的...
Ok...
但他当然无法访问我们拥有用户的 I/O 字段,我希望我给出了我的名字,不,抱歉,我想我猜是 admin,密码是 12345?
but he cannot access of course I/O field for which we have the user and I hope I gave my name no I'm sorry I think I guess admin and the password is 12345?
好吧,现在作为管理员我可以更改它,因为这些 I/O 字段是通过用户管理分配的。
Alright and now as an admin I can change it because these I/O fields are assigned with the user administration..
好吧,我希望这个讲座有意义,如果您需要,您可以将一些用户分配到您当前的程序,您也可以从本课程中获取一些参考,所以如果您有任何疑问,您可以回来找我,您可以对此视频发表评论,我会看到你在下一堂课吗!?
Alright I hope this lecture makes sense and you can assign some users to your current program if you require you can also take some reference from this lesson so if you have any doubt you can come back to me you can comment on this video I will see you in the next lecture!?